package com.springboot.cloud.demos.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springboot.cloud.common.web.entity.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_album")
public class Album extends BasePo {
    private String userId;
    private String momentId;
    private String url;
    private BigDecimal price;
    private Integer playCount=0;
    private Integer supportCount=0;
    private Integer type=2;//2;//普通图片 3;//普通视频 4;//普通语音
    private Integer burn=0;
    private Integer voiceLength=0;//音频的长度（以秒计算）
    /**
     * 0、未删除 1、已删除
     */
    @TableLogic//逻辑删除标识
    @TableField(select = false)//查询的时候不显示
    private String deleted="N";
}
